home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / imagebuf.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  682b  |  26 lines

  1. /* ImageBuffer class works with VGA-EGA 16 color bitmap images. It keeps the
  2.        line of pixels (uchars) and reduce the number of imageP image
  3.        real splittings.
  4. */
  5.  
  6. #ifndef __IMAGE_GUFFER_H_
  7. #define __IMAGE_GUFFER_H_
  8.  
  9. #include "image_p.h"
  10. #include "simple.h"
  11. #include "geom.h"
  12.  
  13. extern bw_pix(int color, int x, int y);  // returns BW pixel, BLACK of WHITE (1),
  14.   // depending of pattern for color. Defined in GBUF.H
  15.  
  16. struct ImageBuffer
  17.     {
  18.     uchar pixels[8];
  19.     loc coord;                   // y coordinate
  20.  
  21.     ImageBuffer() { coord.Y = -1; }
  22.  
  23.     uchar image_get_pixel(imageP image, int byte, int vert_shift);
  24.     };
  25.  
  26. #endif __IMAGE_GUFFER_H_